package com.yhf.job;



import com.yhf.pojo.User;
import com.yhf.service.UserService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;


public class MyJob implements Job {

    @Autowired
    UserService userService;
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        User user = new User(null,"as","123","fdf",12,"12@");
        int i = userService.save(user);
        System.out.println(i);
    }
}
